package com.yzd.learnjava.control;

public class WhleTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		while(condition()){
			System.out.println("inside while");
		}
		System.out.println("out while");
	}
	public static boolean  condition() {
		boolean result = Math.random() < 0.99;
		System.out.print(result + ",");
		return result;
	}
}
